import Layout from '@/views/layout/Layout';

const _import = require('@/router/_import_' + process.env.NODE_ENV);

export default [{
  path: '/product',
  component: Layout,
  name: '产品管理',
  icon: 'setting',
  authority: 'product',
  children: [{
    path: 'list',
    icon: 'fa-user',
    component: _import('product/list/index'),
    name: '产品列表',
    authority: 'productList'
  }, {
    path: 'pcc',
    icon: 'fa-user',
    component: _import('product/pcc/index'),
    name: '产品PCC管理',
    authority: 'productPcc',
    meta: { title: 'productPcc' }
  }, {
    path: 'pcc/detail',
    icon: 'fa-user',
    component: _import('product/pcc/editPcc'),
    name: '编辑产品PCC',
    authority: 'productPccModel:btn_detail'
  }, {
    path: 'archives',
    icon: 'fa-user',
    component: _import('product/archives/index'),
    name: '产品档案管理',
    authority: 'productArchives'
  }, {
    path: 'category',
    icon: 'fa-user',
    component: _import('product/category/index'),
    name: '产品类别管理',
    authority: 'productCategory'
  }, {
    path: 'plan',
    icon: 'fa-user',
    component: _import('product/plan/index'),
    name: '产品策划管理',
    authority: 'productPlan'
  }, {
    path: 'config',
    icon: 'fa-user',
    component: _import('product/config/index'),
    name: '产品配置管理',
    authority: 'productConfig'
  }, {
    path: 'cost',
    icon: 'fa-user',
    component: _import('product/cost/index'),
    name: '产品成本管理',
    authority: 'productCost'
  }, {
    path: 'list/model/compare',
    icon: 'fa-user',
    component: _import('product/model/compare'),
    name: '产品型号档案对比',
    authority: 'productListModel:btn_compare'
  }, {
    path: 'list/model/detail',
    icon: 'fa-user',
    component: _import('product/model/detail'),
    name: '产品档案详情',
    authority: 'productListModel:btn_detail'
  }, {
    path: 'plan/add',
    icon: 'fa-user',
    component: _import('product/plan/add'),
    name: '新增产品策划书',
    authority: 'productPlan:btn_add'
  }, {
    path: 'plan/edit',
    icon: 'fa-user',
    component: _import('product/plan/edit'),
    name: '编辑产品策划书',
    authority: 'productPlan:btn_add'
  }, {
    path: 'plan/detail',
    icon: 'fa-user',
    component: _import('product/plan/detail'),
    name: '查看产品策划详情'
    // authority: 'productPlan:btn_show'
  }, {
    path: 'archives/model/addTrans',
    icon: 'fa-user',
    component: _import('product/model/addTrans'),
    name: '新增产品衍生型号档案',
    authority: 'productListModel:btn_addtrans'
  }, {
    path: 'archives/model/editTrans',
    icon: 'fa-user',
    component: _import('product/model/editTrans'),
    name: '编辑产品衍生型号档案',
    authority: 'productListModel:btn_edittrans'
  }, {
    path: 'archives/model/add',
    icon: 'fa-user',
    component: _import('product/model/add'),
    name: '新增产品型号档案',
    authority: 'productArchivesModel:btn_add'
  }, {
    path: 'archives/model/edit',
    icon: 'fa-user',
    component: _import('product/model/edit'),
    name: '编辑产品型号档案',
    authority: 'productArchivesModel:btn_edit'
  }, {
    path: 'archives/model/file',
    icon: 'fa-user',
    component: _import('product/model/file'),
    name: '文档编辑',
    authority: 'productFileModel:btn_add'
  }, {
    path: 'super',
    component: _import('product/super/index'),
    authority: 'super'
  }, {
    path: 'super/edit',
    component: _import('product/super/edit'),
    authority: 'super_edit:btn'
  }, {
    path: 'models',
    component: _import('product/report/index'),
    authority: 'modelsReport'
  }]
}]
